{include file="public/head"}

<body>
<div id="wrapper">
    {include file="public/menu"}

    <div id="page-wrapper" class="gray-bg dashbard-1">
        {include file="public/nav"}
        <div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-10">
                <h2>财务信息</h2>
                <ol class="breadcrumb">
                    <li>
                        <a href="{:url('Index/index')}">主页</a>
                    </li>
                    <li>
                        <a>财务</a>
                    </li>
                    <li>
                        <strong>财务统计</strong>
                    </li>
                </ol>
            </div>
            <div class="col-lg-2">

            </div>
        </div>
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>财务统计列表</h5>
                        </div>
                        <div class="wrapper wrapper-content">
                            <div class="row">
                                <form method="get" action="{:url('Finance/FinanceList')}">
                                    <div class="row">
                                        <div class="col-sm-4 m-b-xs">
                                            <div class="row">
                                                <div class="col-sm-2 m-b-xs"></div>
                                                <div class="col-sm-3 m-b-xs">开始时间</div>
                                                <div class="col-sm-7 m-b-xs">
                                                    <input type="datetime-local" class="input-sm form-control input-s-sm inline" id="begin_time" name="begin_time" value="{$Data.begin_time|default=''}">
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-sm-4 m-b-xs">
                                            <div class="row">
                                                <div class="col-sm-2 m-b-xs"></div>
                                                <div class="col-sm-3 m-b-xs">结束时间</div>
                                                <div class="col-sm-7 m-b-xs">
                                                    <input type="datetime-local" class="input-sm form-control input-s-sm inline" id="end_time" name="end_time" value="{$Data.end_time|default=''}">
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-sm-4 m-b-xs">
                                            <div class="row">
                                                <div class="col-sm-6 m-b-xs"></div>
                                                <div class="col-sm-6 m-b-xs">
                                                    <button class="btn btn-sm btn-primary" type="submit" id="search"><i class="fa fa-line-chart"></i> 统计</button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>

                            <div class="row">
                                <div class="col-lg-4">
                                    <div class="ibox float-e-margins">
                                        <div class="ibox-title">
                                            <span class="label label-danger pull-right"></span>
                                            <h5>收入</h5>
                                        </div>
                                        <div class="ibox-content">
                                            <h1 class="no-margins">{$TotalIncome}</h1>
                                            <div class="stat-percent font-bold text-info"></i>
                                            </div>
                                            <small>累计收入</small>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-4">
                                    <div class="ibox float-e-margins">
                                        <div class="ibox-title">
                                            <span class="label label-info pull-right"></span>
                                            <h5>奖金</h5>
                                        </div>
                                        <div class="ibox-content">
                                            <h1 class="no-margins">{$TotalFinance}</h1>
                                            <div class="stat-percent font-bold text-info"></i>
                                            </div>
                                            <small>累计奖金</small>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-4">
                                    <div class="ibox float-e-margins">
                                        <div class="ibox-title">
                                            <span class="label label-success pull-right"></span>
                                            <h5>拨比</h5>
                                        </div>
                                        <div class="ibox-content">
                                            <h1 class="no-margins">{$Proportion}%</h1>
                                            <div class="stat-percent font-bold text-navy"></i>
                                            </div>
                                            <small>奖金/收入</small>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-lg-4">
                                    <div class="ibox float-e-margins">
                                        <div class="ibox-title">
                                            <span class="label label-danger pull-right"></span>
                                            <h5>提现</h5>
                                        </div>
                                        <div class="ibox-content">
                                            <h1 class="no-margins">{$WithdrawTotal}</h1>
                                            <div class="stat-percent font-bold text-danger"></i>
                                            </div>
                                            <small>累计提现</small>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-4">
                                    <div class="ibox float-e-margins">
                                        <div class="ibox-title">
                                            <span class="label label-danger pull-right"></span>
                                            <h5>余额</h5>
                                        </div>
                                        <div class="ibox-content">
                                            <h1 class="no-margins">{$TotalBalance}</h1>
                                            <div class="stat-percent font-bold text-danger"></i>
                                            </div>
                                            <small>总计余额</small>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-4"></div>
                            </div>
                            <div class="row">
                                <div class="col-lg-4">
                                    <div class="ibox float-e-margins">
                                        <div class="ibox-title">
                                            <span class="label label-danger pull-right"></span>
                                            <h5>会员</h5>
                                        </div>
                                        <div class="ibox-content">
                                            <h1 class="no-margins">{$UserOpen}</h1>
                                            <div class="stat-percent font-bold text-danger"></i>
                                            </div>
                                            <small>已激活</small>
                                        </div>
                                    </div>
                                </div>

                                <div class="col-lg-4">
                                    <div class="ibox float-e-margins">
                                        <div class="ibox-title">
                                            <span class="label label-danger pull-right"></span>
                                            <h5>会员</h5>
                                        </div>
                                        <div class="ibox-content">
                                            <h1 class="no-margins">{$UserCount}</h1>
                                            <div class="stat-percent font-bold text-danger"></i>
                                            </div>
                                            <small>总会员</small>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        {include file="public/foot"}

    </div>
</div>
</div>
{include file="public/footer"}
<script>
    /*条件搜索*/
    var searchurl = "{:url('Finance/FinancialStatistics')}";
    $('#search').click(function () {

        $('form').attr('action',searchurl);
    });

</script>
</body>
</html>
